﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Leopard.Lex
{
    public abstract class Expression
    {
    }

    public enum BinOperator
    {
        Plus,
        Mins,
        Times,
        Div
    }

    public class IdExp : Expression
    {
        string id;
        public IdExp(string id)
        {
            this.id = id;

        }
    }
    public class NumExp : Expression
    {
        int num;
        public NumExp(int num)
        {
            this.num = num;

        }
             
    }

    public class BinOpExp : Expression
    {
        Expression left, right;
        BinOperator @operator;

        public OpExp(Expression left, Expression right, BinOperator op)
        {
            this.left = left;
            this.right = right;
            @operator = op;
        }

    
    }

    public class 


}
